<div class="title">
  <h1>Listing heros of <%=h @player.name %> </h1>
</div>

<div class="content">
  <table>
    <tr>
      <th>Name</th>
      <th>Pegasus</th>
      <th>Angriff</th>
      <th>Verteidigung</th>
      <th>Leben</th>
    </tr>

    <% for hero in @heros %>
      <tr>
        <td id="content"><%= link_to hero.name, player_hero_path(@player, hero) %></td>
        <td id="centercontent">
          <% if hero.isPegasus %>
            ja
          <% else %>
            nein
          <% end %>
        </td>
        <td id="rightcontent"><%=h hero.angriff %></td>
        <td id="rightcontent"><%=h hero.verteidigung %></td>
        <td id="rightcontent"><%=h hero.leben %></td>
        <td id="buttons"><%= link_to 'Edit', edit_player_hero_path(@player, hero) %></td>
        <td id="buttons"><%= link_to 'Destroy', player_hero_path(@player, hero), :confirm => 'Are you sure?', :method => :delete %></td>
      </tr>
    <% end %>
  </table>
</div>

<% content_for :navigation do %>
  <li>
    <%= link_to 'New hero', new_player_hero_path(@player) %>
  </li>
<% end %>